const obj = {
  name:'funlee',
  age:25
}

const arr = [1,2,3,4,5,5,5,5]

function unique(arr) {
  return Array.from(new Set(arr))
}

const test = unique(arr)

let obj = {
  name:'funlee'
}
let obj2 = obj
obj2.name = 'hello'

console.log(obj)
console.log(obj2)

let obj = {
  name:'程序猿',
  age:{
    child:12
  }
}
let copy = Object.assign({},obj)
console.log(copy)
copy.name = '单身狗'
copy.age.child = 24
console.log(obj)
